<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Microsoft.InformationSecurity.Risk.DataEntity" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Microsoft.InformationSecurity.Risk.DataEntity" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:1113/HostManageRisk.svc?xsd=xsd7" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:complexType name="GeneralStats">
    <xs:sequence>
      <xs:element minOccurs="0" name="TotalActiveRisk" type="xs:int" />
      <xs:element minOccurs="0" name="TotalNewInLastTasks30Days" type="xs:int" />
      <xs:element minOccurs="0" name="TotalNewInLastTasks7Days" type="xs:int" />
      <xs:element minOccurs="0" name="TotalNewRiskInLast30Days" type="xs:int" />
      <xs:element minOccurs="0" name="TotalNewRiskInLast7Days" type="xs:int" />
      <xs:element minOccurs="0" name="TotalRiskInSystem" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GeneralStats" nillable="true" type="tns:GeneralStats" />
  <xs:complexType name="ArrayOfNoteData">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="NoteData" nillable="true" type="tns:NoteData" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfNoteData" nillable="true" type="tns:ArrayOfNoteData" />
  <xs:complexType name="NoteData">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedDate" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Note" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NoteID" type="xs:int" />
      <xs:element minOccurs="0" name="SubmittedByFullName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NoteData" nillable="true" type="tns:NoteData" />
  <xs:complexType name="ArrayOfIncident">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Incident" nillable="true" type="tns:Incident" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfIncident" nillable="true" type="tns:ArrayOfIncident" />
  <xs:complexType name="Incident">
    <xs:sequence>
      <xs:element minOccurs="0" name="Desc" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IncidentID" type="xs:int" />
      <xs:element minOccurs="0" name="RiskID" type="xs:int" />
      <xs:element minOccurs="0" name="SubmittedBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SubmittedDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Title" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedDate" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Incident" nillable="true" type="tns:Incident" />
  <xs:complexType name="ArrayOfOrganizationData">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="OrganizationData" nillable="true" type="tns:OrganizationData" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfOrganizationData" nillable="true" type="tns:ArrayOfOrganizationData" />
  <xs:complexType name="OrganizationData">
    <xs:sequence>
      <xs:element minOccurs="0" name="OrganizationLevel" type="xs:int" />
      <xs:element minOccurs="0" name="OrgnaizationCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrgnaizationID" type="xs:int" />
      <xs:element minOccurs="0" name="OrgnaizationName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="OrganizationData" nillable="true" type="tns:OrganizationData" />
  <xs:complexType name="OrganizationContact">
    <xs:sequence>
      <xs:element minOccurs="0" name="OrganizationContactXML" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrphanedContacts" nillable="true" type="tns:ArrayOfPerson" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="OrganizationContact" nillable="true" type="tns:OrganizationContact" />
  <xs:complexType name="ArrayOfPerson">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Person" nillable="true" type="tns:Person" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPerson" nillable="true" type="tns:ArrayOfPerson" />
  <xs:complexType name="Person">
    <xs:sequence>
      <xs:element minOccurs="0" name="EmailName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FullName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PersonID" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Person" nillable="true" type="tns:Person" />
  <xs:complexType name="RiskInformation">
    <xs:sequence>
      <xs:element minOccurs="0" name="Alias" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Contacts" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="CurrentCalculatedRiskValue" type="xs:int" />
      <xs:element minOccurs="0" name="CurrentControlAffectivenessJustification" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CurrentControlAffectivenessValue" type="xs:int" />
      <xs:element minOccurs="0" name="CurrentFrequencyJustification" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CurrentFrequencyValue" type="xs:int" />
      <xs:element minOccurs="0" name="CurrentImapctJustification" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CurrentImpactValue" type="xs:int" />
      <xs:element minOccurs="0" name="CurrentRiskRating" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DataClassificationID" type="xs:int" />
      <xs:element minOccurs="0" name="Desc" nillable="true" type="xs:string" />
      <xs:element xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Geography" nillable="true" type="q1:ArrayOfint" />
      <xs:element minOccurs="0" name="Notes" nillable="true" type="tns:ArrayOfNoteData" />
      <xs:element xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="OERMClassification" nillable="true" type="q2:ArrayOfint" />
      <xs:element minOccurs="0" name="OrganizationContact" nillable="true" type="tns:OrganizationContact" />
      <xs:element minOccurs="0" name="Organizations" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OwnersComment" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PIIID" type="xs:int" />
      <xs:element minOccurs="0" name="RiskField1" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RiskField2" type="xs:int" />
      <xs:element xmlns:q3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="RiskGroups" nillable="true" type="q3:ArrayOfint" />
      <xs:element minOccurs="0" name="RiskID" type="xs:int" />
      <xs:element minOccurs="0" name="RiskManagerID" type="xs:int" />
      <xs:element minOccurs="0" name="RiskOrigin" type="xs:int" />
      <xs:element minOccurs="0" name="RiskOriginApplicationID" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RiskPriortizedCRV" type="xs:decimal" />
      <xs:element minOccurs="0" name="RiskPriortizedWt" type="xs:decimal" />
      <xs:element minOccurs="0" name="RiskValidatedByTriage" type="xs:boolean" />
      <xs:element minOccurs="0" name="Status" type="xs:int" />
      <xs:element minOccurs="0" name="StatusText" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SubmittedByFullName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SubmittedByID" type="xs:int" />
      <xs:element minOccurs="0" name="TargetCalculatedRiskValue" type="xs:int" />
      <xs:element minOccurs="0" name="TargetControlAffectivenessJustification" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TargetControlAffectivenessValue" type="xs:int" />
      <xs:element minOccurs="0" name="TargetFrequencyJustification" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TargetFrequencyValue" type="xs:int" />
      <xs:element minOccurs="0" name="TargetImpactJustification" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TargetImpactValue" type="xs:int" />
      <xs:element minOccurs="0" name="TargetRiskRating" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Title" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedByFullName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedByID" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedDate" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="RiskInformation" nillable="true" type="tns:RiskInformation" />
  <xs:complexType name="ArrayOfRiskInformation">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="RiskInformation" nillable="true" type="tns:RiskInformation" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfRiskInformation" nillable="true" type="tns:ArrayOfRiskInformation" />
</xs:schema>